package cn.dkdoo.utils.annotation;

import cn.dkdoo.utils.config.TransactionManagementConfigurationSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(TransactionManagementConfigurationSelector.class)
public @interface EnableDkdTransactional {
    /**
     * 是否开启事务
     */
    boolean openTra() default false;

    /**
     * 是否启用默认回滚api
     */
    boolean openRolApi() default false;
}
